var xmlHttp = null;

function showMenuContent(linkMenu,extraParameter){
    xmlHttp = getXMLHttpObject();
    if (xmlHttp == null){
        alert("Browser anda tidak mendukung");
        return
    }
    url = "Admin/Page Action/HttpRequestAction.php"+"?menu="+linkMenu+extraParameter;
    xmlHttp.onreadystatechange = stateChanged;
    xmlHttp.open("REQUEST", url, true);
    xmlHttp.send(null);
}

function stateChanged(){
    if ((xmlHttp.readyState == 4) || (xmlHttp.readyState="complete")){
        document.getElementById("content menu").innerHTML = xmlHttp.responseText;
    }
}

function getXMLHttpObject(){
    var xmlHttp = null;
    try{
        xmlHttp = new XMLHttpRequest();
    }catch(e){
        xmlHttp = new ActiveXObject("Microsoft.xmlhttp");
    }
    return xmlHttp;
}